package com.gpframework.common.enums;

import lombok.Getter;

/**
 * @author BrinedFish
 * @create 2022-05-09 20:12
 */
@Getter
public enum OrderStatusEnum {

    /**
     * common_order_audit#audit_type
     * gp_flow_config  流转节点配置表
     */
    TO_BE_PICKING_UP_GOODS("待拿货", "0"),
    TO_BE_INSPECTION("待验货", "5"),
    TO_BE_STOCK_UP("待备货", "10"),
    TO_BE_SEND_OUT_GOODS("待发货", "20"),
    TO_BE_TRANSFER("待中转", "30"),
    IN_TRANSIT_DELIVERY("中转送货中", "35"),
    COMPLETE("完成", "40"),

    /**
     * flow_config_sort
     */
    PICKING_UP_GOODS("拿货", "10","1"),
    INSPECTION("验货", "15","5"),
    STOCK_UP("备货", "20","2"),
    SEND_OUT_GOODS("发货", "30","3"),
    TRANSFER("中转", "40","4"),
    ;
    /**
     * 业务名称
     */
    private String name;

    private String key;
    private String id;

    private OrderStatusEnum() {
    }

    private OrderStatusEnum(String name) {
        this.name = name;
    }

    private OrderStatusEnum(String name, String key) {
        this.name = name;
        this.key = key;
    }

    private OrderStatusEnum(String name, String key,String id) {
        this.name = name;
        this.key = key;
        this.id = id;
    }

}
